<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateHzMenusTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('menus', function(Blueprint $table)
		{
			$table->increments('id');
			$table->integer('pid')->default(0)->comment('菜单关系');
			$table->string('name', 191)->default('')->comment('菜单名称');
			$table->string('icon', 191)->default('')->comment('图标');
			$table->string('slug', 191)->default('')->comment('菜单对应的权限');
			$table->string('url', 191)->default('')->comment('菜单链接地址');
			$table->string('active', 191)->default('')->comment('菜单高亮地址');
			$table->string('description', 191)->default('')->comment('描述');
			$table->boolean('sort')->default(0)->comment('排序');
			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('hz_menus');
	}

}
